package operations;

import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;

/**
 * The Class CopyCutOperations.
 * This class performs the copy and cut operations.
 * This class extends the formatOperations class and inherits the clipboard from it.
 */
public class CopyCutOperations extends FormatOperations {
	public void performOperation(String selectedText){
		clipboardString = new StringSelection(selectedText);
		Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
		clipboard.setContents(clipboardString, this);
		
	}
	
}
